import pytest
import requests
from  send.Send import Send
from utils.read_yaml import  read_yaml

class Test_Change_money:
    @pytest.mark.parametrize(  "args"  ,  read_yaml(r"C:\Program Files\pyxiangmu\jiekoutest\case\data\updateBankCard.yaml")   )
    def test_updateBankCard (self,args):

        session = requests.session()

        send = Send()

        result = send.send_updateBankCard(session, args["cardbank"], args["card_type"], args["cardnum"])

        assert result["code"] == 200 and result["body"]["code"] == args["exp"]